#include "pch.h"
#include "lua_register.h"
#include "lua_engine.h"

void lua_reg() {
    __try {
        auto index = lua_gettop();
        lua_register("_G", (uintptr)regs);
        lua_settop(index);
    } __except (1) {
        dbgprint("codergege ERROR %s %d", __FUNCTION__, __LINE__);
    }
}